﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///移库单表
    ///</summary>
    [SugarTable("DBO.t_TransferBinOrder")]
    public partial class t_TransferBinOrder
    {
        public t_TransferBinOrder()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:移库订单编号：Move+年月+00001
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OrderSN { get; set; }

        /// <summary>
        /// Desc:单据类型编号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillType { get; set; }

        /// <summary>
        /// Desc:单据状态：0-创建;1-提交;2-审核通过;3-作业中；4-已完成;5-强制完成;6-失效；7-异常
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Status { get; set; }

        /// <summary>
        /// Desc:来源类型:默认为1(手动建单)，对应中间库的表T_BD_BillSource
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SourceType { get; set; }

        /// <summary>
        /// Desc:公司Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CompanyId { get; set; }

        /// <summary>
        /// Desc:公司名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CompanyName { get; set; }

        /// <summary>
        /// Desc:优先级:默认为0
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Proirity { get; set; }

        /// <summary>
        /// Desc:客户单据号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ERPCode { get; set; }

        /// <summary>
        /// Desc:调整原因
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Reason { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建人ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:创建日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:修改人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:提交人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SubmitUserId { get; set; }

        /// <summary>
        /// Desc:提交人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SubmitUserName { get; set; }

        /// <summary>
        /// Desc:提交时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? SubmitDate { get; set; }

        /// <summary>
        /// Desc:审核人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AuditUserId { get; set; }

        /// <summary>
        /// Desc:审核人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AuditUserName { get; set; }

        /// <summary>
        /// Desc:审核时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? AuditDate { get; set; }

    }
}
